﻿@{
    // 编辑页 - 公共模板
    Layout = "~/Views/Shared/_Layout_Pear_Layui.cshtml";
}

@section Styles {
    <style>
        .pear-admin .layui-body { left: 0; padding-bottom: 30px; }
            .pear-admin .layui-body .layui-tab-content { padding: 15px 0 35px; background-color: #fff; }
        .content-label { width: initial; max-width: 400px; padding-left: 0; text-align: left; }
        .btn-fixbar-box { bottom: 0; width: 100%; margin-bottom: 0; padding: 10px 0; }
    </style>

    @await RenderSectionAsync("Styles", required: false)
}

@RenderBody()

@section Scripts {
    <script>
        layui.use(['util'], function () {
            let util = layui.util;

            onFnCommon();

            // 公共事件
            function onFnCommon() {
                util.on('lay-on', {
                    // 关闭当前页
                    'close': function () {
                        window.parent.layer.close(parent.layer.getFrameIndex(window.name));
                    }
                });
            }
        });
    </script>
    @await RenderSectionAsync("Scripts", required: false)
}